package com.followerback.model;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached public class TwitterProfile {

	@Id private Long id;
	
	private long userID;
	
	@Unindexed private String screenName;
	
	@Unindexed private String pictureURL = "";
	
	@Unindexed private String token = "";
	
	@Unindexed private String tokenSecret = "";
	
	private long creationTime;

	public TwitterProfile(long userID, String screenName, String pictureURL, String token, 
			String tokenSecret) {
		this.userID = userID;
		this.screenName = screenName;
		this.pictureURL = pictureURL;
		this.token = token;
		this.tokenSecret = tokenSecret;
		this.creationTime = System.currentTimeMillis();
	}

	public TwitterProfile() {
		super();
	}

	public Long getId() {
		return id;
	}

	public long getUserID() {
		return userID;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getPictureURL() {
		return pictureURL;
	}

	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTokenSecret() {
		return tokenSecret;
	}

	public void setTokenSecret(String tokenSecret) {
		this.tokenSecret = tokenSecret;
	}

	public long getCreationTime() {
		return creationTime;
	}
}
